Ext.define('HGMIDE.view.DeviceSizeList', {
	extend : 'Ext.List',
	xtype : 'deviceSizeList',
	config : {
		store : 'deviceSizeStore',
		itemTpl : new Ext.XTemplate('<span>{name}</span><br/><span>{width}x{height}({heightScale}:{widthScale}&nbsp;{inch})</span>'),
		listeners : {
			select : function(list, record, eOpts) {
				Ext.getCmp('widthController').setValue(record.get('width'));
				Ext.getCmp('heightController').setValue(record.get('height'));
				Emulator.predefineWidth = record.get('width');
				Emulator.predefineHeight = record.get('height');
			}
		}
	}
});
